home *** CD-ROM | disk | FTP | other *** search
/ BigMax 10 / BigMax nº 10.iso / UTEIS / MCAFEE / WIN3X / DATA.Z / edat.3 < prev    next >
Text File  |  1997-04-11  |  14KB  |  392 lines

  1. REM ********HOUSE KEEPING ***********
  2. @ECHO OFF
  3. SET ERROR10=0
  4. SET ERROR17=0
  5.  
  6. :SelfCheckOK
  7. CLS
  8. ECHO *
  9. ECHO *
  10. ECHO *                  MCAFEE VIRUS REMOVAL TOOL
  11. ECHO *
  12. ECHO *    THIS DISKETTE IS USED TO SIMPLIFY THE TASK OF REMOVING A
  13. ECHO *    VIRUS FROM YOUR COMPUTER.  IT IS IMPORTANT TO ENSURE THAT
  14. ECHO *    YOU COLD BOOTED YOUR MACHINE BEFORE USING THIS DISKETTE.
  15. ECHO *    A COLD BOOT MEANS THAT THE POWER TO THE COMPUTER IS TURNED
  16. ECHO *    OFF AND THEN TURNED ON WITH THIS DISKETTE IN THE A: DRIVE.
  17. ECHO *
  18. ECHO *
  19.  
  20. A:\GETREPLY.EXE Did you cycle the power off and on (Y/N)? ;yn
  21. IF ERRORLEVEL 2 GOTO NoCyclePWR    
  22.  
  23. :DoScan
  24. REM ******************************************************************
  25. REM **** PERFORM THE SCAN
  26. REM ******************************************************************
  27.  
  28. CLS
  29. ECHO *
  30. ECHO *
  31. ECHO *            MCAFEE VIRUS REMOVAL TOOL
  32. ECHO *
  33. ECHO *    WE ARE NOW READY TO BEGIN SCANNING YOUR DRIVE.  THANK YOU 
  34. ECHO *    FOR CHOSING MCAFEE'S VIRUSSCAN FOR YOUR VIRUS PROTECTION NEEDS. 
  35. ECHO *
  36. ECHO *    MCAFEE WILL PERFORM A SCAN OF ALL LOCAL DRIVES FOR VIRUSES 
  37. ECHO *    AND ATTEMPT TO CLEAN ANY INFECTIONS THAT ARE FOUND.  CERTAIN
  38. ECHO *    VIRUSES MAY REQUIRE YOU TO REBOOT AND PERFORM THIS SCAN
  39. ECHO *    AGAIN.  IF THE SCAN STALLS FOR MORE THAN 30 SECONDS THEN TURN
  40. ECHO *    THE POWER OFF AND THEN BACK ON AGAIN WITH THIS DISKETTE IN 
  41. ECHO *    THE A: DRIVE.
  42. ECHO *
  43. ECHO *
  44. PAUSE
  45.  
  46. CLS
  47. SCAN /ADL /ALL /CLEAN /NOBREAK
  48. PAUSE
  49.  
  50. :DoErrors
  51. REM ******************************************************************
  52. REM ***  DO ERROR CHECKING
  53. REM ******************************************************************
  54. IF ERRORLEVEL 100 GOTO ErrorDOS
  55. IF ERRORLEVEL 17 GOTO NoTarget
  56. IF ERRORLEVEL 16 GOTO BadAccess
  57. IF ERRORLEVEL 15 GOTO BadScanEXE
  58. IF ERRORLEVEL 14 GOTO Update
  59. IF ERRORLEVEL 13 GOTO VirusFound
  60. IF ERRORLEVEL 12 GOTO BadClean
  61. IF ERRORLEVEL 11 GOTO ProgError
  62. IF ERRORLEVEL 10 GOTO VirusInMemory
  63. IF ERRORLEVEL 8  GOTO MissingDat
  64. IF ERRORLEVEL 6  GOTO ProgError
  65. IF ERRORLEVEL 5  GOTO ProgError
  66. IF ERRORLEVEL 3  GOTO BadAccess
  67. IF ERRORLEVEL 2  GOTO BadDats
  68. IF ERRORLEVEL 1  GOTO BadAccess
  69. IF ERRORLEVEL 0  GOTO Nada
  70.  
  71. REM ******************************************************************
  72. REM ******  ERROR CHECKING ROUTINES                             ******
  73. REM ******************************************************************
  74.  
  75. :Nada
  76. REM ******************************************************************
  77. REM *** errorlevel 0
  78. REM ******************************************************************
  79. CLS
  80. IF %ERROR10%==1 GOTO ExitNoMem
  81. ECHO *
  82. ECHO *
  83. ECHO *    No viruses were found in memory, or on any local drives!
  84. ECHO *    When the prompt returns you should remove this diskette
  85. ECHO *    and reboot your system.
  86. ECHO *
  87. ECHO *
  88. GOTO Exit
  89.  
  90. :BadAccess
  91. REM ******************************************************************
  92. REM *** errorlevels 1, 3 & 16
  93. REM ******************************************************************
  94. CLS
  95. ECHO *
  96. ECHO *
  97. ECHO *    An error has occurred while trying to access one of your local
  98. ECHO *    drives.  Please reboot the machine with this diskette in the A: 
  99. ECHO *    drive and reattempt the procedure.  If this error continues 
  100. ECHO *    then it may be necessary to run some kind of disk diagnostic 
  101. ECHO *    software on the drive before re-attempting the removal procedure.
  102. ECHO *
  103. ECHO *
  104. GOTO Exit
  105.  
  106. :BadDats
  107. REM ******************************************************************
  108. REM *** errorlevel 2
  109. REM ******************************************************************
  110. CLS
  111. ECHO *
  112. ECHO *
  113. ECHO *    An error occurred while trying to read the data files.  This 
  114. ECHO *    could mean that either the diskette is damaged, has been 
  115. ECHO *    modified or the floppy drive is slightly misaligned.  If you 
  116. ECHO *    have a second machine you could boot from this disk and verify 
  117. ECHO *    if the floppy drive is OK.  Since the diskette is write protected
  118. ECHO *    it is unlikely that the file(s) were modified unless the write-
  119. ECHO *    protection was forcefully over-ridden.
  120. ECHO *
  121. ECHO *
  122. ECHO *
  123. GOTO Exit
  124.  
  125. :ProgError
  126. REM ******************************************************************
  127. REM *** errorlevels 5, 6 and 11
  128. REM ******************************************************************
  129. CLS
  130. ECHO *
  131. ECHO *
  132. ECHO *    There has been a problem with the VirusScan program. This 
  133. ECHO *    could be caused by a corrupted file, low memory or a conflict 
  134. ECHO *    with a piece of hardware. It is also possible that a virus 
  135. ECHO *    is active and interfering with the program. Please cold boot 
  136. ECHO *    this system again with this disk and try the scan again. If 
  137. ECHO *    this problem continues please consult your manual on how
  138. ECHO *    to create a new Emergency Disk.
  139. ECHO *
  140. ECHO *
  141. GOTO Exit
  142.  
  143. :MissingDat
  144. REM ******************************************************************
  145. REM *** errorlevel 8
  146. REM ******************************************************************
  147. CLS
  148. ECHO *
  149. ECHO *
  150. ECHO *    One or more of the following files are missing: SCAN.DAT, 
  151. ECHO *    NAMES.DAT, and CLEAN.DAT.  There is a good chance that this 
  152. ECHO *    diskette may have been modified.  Please cold boot this system 
  153. ECHO *    again with this disk and try the scan again. If this problem 
  154. ECHO *    continues please consult your manual on how  to get a new copy
  155. ECHO *    of this disk.
  156. ECHO *
  157. ECHO *
  158.  
  159. GOTO Exit
  160.  
  161.  
  162. :VirusInMemory
  163. REM ******************************************************************
  164. REM *** errorlevel 10
  165. REM ******************************************************************
  166. CLS
  167. ECHO *
  168. ECHO *
  169. ECHO *        W       A       R       N       I       N       G
  170. ECHO *        
  171. ECHO *    The signature of a virus was found in memory while performing
  172. ECHO *    the memory scan.  It is unlikely that this disk is infected
  173. ECHO *    as long as the write protect tab on the diskette was never
  174. ECHO *    bypassed.  There are other possibilities.  You should check
  175. ECHO *    the boot sequence in CMOS.  The hardware documentation that
  176. ECHO *    came with your computer should discuss how to access this area.
  177. ECHO *    Ensure that the sequence is A: first THEN C:.
  178. ECHO *
  179. ECHO *    It is also possible that you have a hard drive controller that
  180. ECHO *    is placing an IMAGE of the infected Boot Record into memory.
  181. ECHO *    If this is the case then the virus may not be active and could
  182. ECHO *    possibly be removed.
  183. ECHO *
  184. ECHO *
  185. A:\GETREPLY.EXE Would you like to attempt anyway (Y/N)? ;yn
  186. IF ERRORLEVEL 2 GOTO Exit
  187. GOTO ScanNOMEM
  188.  
  189. :BadClean
  190. REM ******************************************************************
  191. REM *** errorlevel 12
  192. REM ******************************************************************
  193. CLS
  194. ECHO *
  195. ECHO *
  196. ECHO *    A problem has occurred in trying to clean a virus. Either the
  197. ECHO *    CLEAN.DAT file is missing or corrupted or VirusScan was unable 
  198. ECHO *    to clean the virus. Please check this diskette with the Validate
  199. ECHO *    program included to make sure the files are all there and are 
  200. ECHO *    not corrupted. If the files are ok, please cold boot the machine 
  201. ECHO *    with this diskette and try the scan again. If the file will still 
  202. ECHO *    not clean, you will need to delete them.
  203. ECHO *
  204. GOTO Exit
  205.  
  206. :VirusFound
  207. REM ******************************************************************
  208. REM *** errorlevel 13
  209. REM ******************************************************************
  210. CLS
  211. ECHO *
  212. ECHO *        W       A       R       N       I       N       G
  213. ECHO *
  214. ECHO *    One or more viruses were found on this computer. In many cases
  215. ECHO *    the viruses were cleaned at the same time by the program. It 
  216. ECHO *    is recommended that you cold boot this machine with this 
  217. ECHO *    disk again and have it run another scan to insure that the 
  218. ECHO *    computer is clean and no viruses were missed or were not cleaned.
  219. ECHO *
  220. ECHO *    In some cases, an infected file can not be cleaned without
  221. ECHO *    damaging the file.  It will then be necessary to identify and
  222. ECHO *    delete the infected file.  Please refer to the manual for
  223. ECHO *    additional information on /Report {filename} to identify the
  224. ECHO *    infected file and /Del to delete the file.  Then restore the file
  225. ECHO *    from a backup.
  226. ECHO *
  227. GOTO Exit
  228.  
  229. :Update
  230. REM ******************************************************************
  231. REM *** errorlevel 14
  232. REM ******************************************************************
  233. CLS
  234. ECHO *
  235. ECHO *
  236. ECHO *    Your virus data files are getting old and you should update 
  237. ECHO *    them.  This is not a major problem.  However, there may be 
  238. ECHO *    viruses on this machine that are not detectable by this version 
  239. ECHO *    of the software.  By updating your software you are getting 
  240. ECHO *    the most protection possible.  Please consult your manual for 
  241. ECHO *    update information.
  242. ECHO *
  243. ECHO *
  244. GOTO Exit
  245.  
  246. :BadscanEXE
  247. REM ******************************************************************
  248. REM *** errorlevel 15
  249. REM ******************************************************************
  250. CLS
  251. ECHO *
  252. ECHO *
  253. ECHO *    The self-check has failed.  This may be caused by a damaged 
  254. ECHO *    or modified SCAN.EXE file or problem with the floppy drive. 
  255. ECHO *    First, at the A: prompt run VALIDATE SCAN.EXE and verify the 
  256. ECHO *    validation code against the code in the PACKING.LST file. 
  257. ECHO *    The PACKING.LST file will be displayed on exit.
  258. ECHO *
  259. ECHO *
  260. PAUSE
  261. GOTO AbortSLFCHK
  262.  
  263. :NoTarget
  264. REM ******************************************************************
  265. REM *** errorlevel 17:  Possible encrypting virus
  266. REM ******************************************************************
  267. IF %ERROR17%==1 GOTO EncManualRemove
  268. CLS
  269. ECHO *
  270. ECHO *
  271. ECHO *    Scan has reported that there is no target specified for 
  272. ECHO *    scanning.  This could be due to an encrypting virus or a 
  273. ECHO *    possible hardware issue.  Another scan will be attempted 
  274. ECHO *    to remedy the situation.
  275. ECHO *
  276. ECHO *    Please stand by...
  277. ECHO *
  278. ECHO *
  279. GOTO ScanCDrive
  280.  
  281. :ErrorDOS
  282. REM ******************************************************************
  283. REM *** DOS Error
  284. REM ******************************************************************
  285. CLS
  286. ECHO *
  287. ECHO *
  288. ECHO *    A DOS error has occurred.  Please consult your DOS manual 
  289. ECHO *    for details or contact your DOS vendor for assistance.
  290. ECHO *
  291. ECHO *
  292. GOTO Exit
  293.  
  294.  
  295. REM ******************************************************************
  296. REM ****  AUXILLARY PROCEDURES
  297. REM ******************************************************************
  298.  
  299.  
  300. :AbortSLFCHK
  301. REM ******************************************************************
  302. REM self check failed
  303. REM ******************************************************************
  304. CLS
  305. TYPE PACKING.LST
  306. GOTO Exit
  307.  
  308. :NoCyclePwr
  309. REM ******************************************************************
  310. REM user said that he did not cycle the power off
  311. REM ******************************************************************
  312. CLS
  313. ECHO *
  314. ECHO *
  315. ECHO *    It is strongly recommended that you leave this diskette in the
  316. ECHO *    the A: drive and turn the power to the computer off and then 
  317. ECHO *    on.  Some viruses are capable of surviving a warm boot or a
  318. ECHO *    CTRL+ALT+DEL by remaining in memory.
  319. ECHO *
  320. ECHO *
  321. GOTO Exit
  322.  
  323. :ScanNOMEM
  324. REM ******************************************************************
  325. REM *****  ATTEMPT TO BYPASS MEMORY SCAN
  326. REM ******************************************************************
  327. CLS
  328. ECHO *
  329. ECHO *
  330. ECHO *    If no virus is found on the hard drive(s) then most likely 
  331. ECHO *    the virus is active and it is a stealth type virus.  If a 
  332. ECHO *    virus is found it is recommended that you boot to this diskette
  333. ECHO *    a second time to ensure the virus has been removed.
  334. ECHO *
  335. ECHO *
  336. SET ERROR10=1
  337. SCAN /ADL /ALL /CLEAN /NOMEM /NOBREAK
  338. GOTO DoErrors
  339.  
  340. :ScanCDrive
  341. REM ******************************************************************
  342. REM ***  Run scan on only the C: drive
  343. REM ******************************************************************
  344. SET ERROR17=1
  345. SCAN C: /NOBREAK /ALL
  346. GOTO DoErrors
  347.  
  348. :EncManualRemove
  349. REM ******************************************************************
  350. REM *** The Scan C: /CLEAN didn't work
  351. REM ******************************************************************
  352. CLS
  353. ECHO *
  354. ECHO *
  355. ECHO *    The same error has occurred again.  If this is due to a virus 
  356. ECHO *    you may need to perform a manual removal in this case.  It 
  357. ECHO *    is also possible that you are experiencing some hardware issues.
  358. ECHO *    Try running a disk diagnostic program to see if it can clear up 
  359. ECHO *    the problem.
  360. ECHO *
  361. ECHO *
  362. GOTO Exit
  363.  
  364. :ExitNoMem
  365. REM ******************************************************************
  366. REM *****  EXIT AFTER USING NOMEM AND VIRUS WAS FOUND PREVIOUSLY
  367. REM ******************************************************************
  368. CLS
  369. ECHO *
  370. ECHO *
  371. ECHO *    Scan did not find a virus on the second pass.  However, because 
  372. ECHO *    a virus was found in memory it is possible that there may still 
  373. ECHO *    be a virus active on the hard drive.  Again, as long as the write 
  374. ECHO *    protect tab on this diskette was never bypassed, it is unlikely 
  375. ECHO *    that this disk is infected.  There are other possibilities why 
  376. ECHO *    traces of a virus are still in memory.  
  377. ECHO *
  378. ECHO *    You should check the boot sequence in CMOS.  The hardware 
  379. ECHO *    documentation that came with your computer should discuss 
  380. ECHO *    how to access this area.  Ensure that the sequence is A: 
  381. ECHO *    first THEN C:  Try cold booting your system again using this diskette
  382. ECHO *    and run another scan.  If a virus continues to show up in memory, 
  383. ECHO *    then there may be a compatibility issue with some hardware 
  384. ECHO *    in the computer.
  385. ECHO *
  386. ECHO *
  387. GOTO Exit
  388.  
  389. @ECHO OFF
  390. :Exit
  391. echo exit
  392.